package com.zxjbyte.yiyi.framework.common.function;

import java.util.Objects;

/**
 * @Author zhangxingjia
 * @Date 2024/4/28 16:41
 * @Version: 1.0
 */
@FunctionalInterface
public interface TriConsumer<T, U, V> {

    void accept(T t, U u, V v);

    default TriConsumer<T, U, V> andThen(TriConsumer<? super T, ? super U, ? super V> after) {
        Objects.requireNonNull(after);
        return (a, b, c) -> {
            accept(a, b, c);
            after.accept(a, b, c);
        };
    }
}
